---@class MathUtil
MathUtil = ClientFight.CreateClass("MathUtil")
local this = MathUtil
function this.getMovedVectorByLen( startPos,  targetPos,  moveLen)
    local r = math.atan(targetPos.y - startPos.y, targetPos.x - startPos.x);
    local x = moveLen * math.cos(r);
    local y = moveLen * math.sin(r);

    local newPos = Vector2(startPos.x + x, startPos.y + y);
    return newPos;
end
function this.toRatio(value)
    return value/10000.0
end